/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modele;

import java.util.GregorianCalendar;

/**
 *
 * @author Alex
 */
public class Paiement {
    protected Integer idPaiement;
    protected Garage GarageReceiver;
    protected Claim claim;
    protected GregorianCalendar transferDate;
    protected Status status;
    
    protected static Integer nbPaiements = 1;

    public Paiement(Garage GarageReceiver, Claim claim) {
        this.GarageReceiver = GarageReceiver;
        this.claim = claim;
        this.status = Status.REQUESTED;
        this.idPaiement = nbPaiements++;
    }

    public Garage getGarageReceiver() {
        return GarageReceiver;
    }

    public void setGarageReceiver(Garage GarageReceiver) {
        this.GarageReceiver = GarageReceiver;
    }

    public Claim getClaim() {
        return claim;
    }

    public void setClaim(Claim claim) {
        this.claim = claim;
    }

    public Integer getIdPaiement() {
        return idPaiement;
    }

    public void setIdPaiement(Integer idPaiement) {
        this.idPaiement = idPaiement;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public GregorianCalendar getTransferDate() {
        return transferDate;
    }

    public void setTransferDate(GregorianCalendar transferDate) {
        this.transferDate = transferDate;
    }
    
    public enum Status {
        REQUESTED, DONE;
    }
}
